import request from '@/utils/request'
export const getUserSimpleRequest = () => request.get('/sys/user/simple')
export const getUserListRequest = params => request.get('/sys/user', { params })
export const addUserRequest = data => request.post('/sys/user', data)
export const delUserRequest = id => request.delete(`/sys/user/${id}`)
export const importUserRequest = data => request.post(`/sys/user/batch`, data)
export const getUserInfoRequest = id => request.get(`/sys/user/${id}`)

export const updateUserInfoRequest = data => request.put(`/sys/user/${data.id}`, data)

